package section1;

/*
 * 
	Sample Input
	1 5
	10 20
	0 0
	Sample Output
	6
	30
 * */

import java.util.Scanner;
public class PracticeIII {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a,b;
		while(sc.hasNext()){
			a = sc.nextInt();
			b = sc.nextInt();
			if(a==0 && b==0){
				break;
			}
			System.out.println(a+b);
		}
	}
}
